package securityStub;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;

/**
 * <p>
 * Java class for user complex type.
 * 
 * <p>
 * The following schema fragment specifies the expected content contained within
 * this class.
 * 
 * <pre>
 * &lt;complexType name=&quot;user&quot;&gt;
 *   &lt;complexContent&gt;
 *     &lt;restriction base=&quot;{http://www.w3.org/2001/XMLSchema}anyType&quot;&gt;
 *       &lt;sequence&gt;
 *         &lt;element name=&quot;caPassword&quot; type=&quot;{http://www.w3.org/2001/XMLSchema}string&quot; minOccurs=&quot;0&quot;/&gt;
 *         &lt;element name=&quot;passport&quot; type=&quot;{http://securityService/}passport&quot; minOccurs=&quot;0&quot;/&gt;
 *         &lt;element name=&quot;userChecks&quot; type=&quot;{http://securityService/}userCheck&quot; maxOccurs=&quot;unbounded&quot; minOccurs=&quot;0&quot;/&gt;
 *         &lt;element name=&quot;userId&quot; type=&quot;{http://www.w3.org/2001/XMLSchema}string&quot; minOccurs=&quot;0&quot;/&gt;
 *       &lt;/sequence&gt;
 *     &lt;/restriction&gt;
 *   &lt;/complexContent&gt;
 * &lt;/complexType&gt;
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "user", propOrder = { "caPassword", "passport", "userChecks",
		"userId" })
public class User {

	protected String caPassword;
	protected Passport passport;
	@XmlElement(nillable = true)
	protected List<UserCheck> userChecks;
	protected String userId;

	/**
	 * Gets the value of the caPassword property.
	 * 
	 * @return possible object is {@link String }
	 * 
	 */
	public String getCaPassword() {
		return caPassword;
	}

	/**
	 * Sets the value of the caPassword property.
	 * 
	 * @param value
	 *            allowed object is {@link String }
	 * 
	 */
	public void setCaPassword(String value) {
		this.caPassword = value;
	}

	/**
	 * Gets the value of the passport property.
	 * 
	 * @return possible object is {@link Passport }
	 * 
	 */
	public Passport getPassport() {
		return passport;
	}

	/**
	 * Sets the value of the passport property.
	 * 
	 * @param value
	 *            allowed object is {@link Passport }
	 * 
	 */
	public void setPassport(Passport value) {
		this.passport = value;
	}

	/**
	 * Gets the value of the userChecks property.
	 * 
	 * <p>
	 * This accessor method returns a reference to the live list, not a
	 * snapshot. Therefore any modification you make to the returned list will
	 * be present inside the JAXB object. This is why there is not a
	 * <CODE>set</CODE> method for the userChecks property.
	 * 
	 * <p>
	 * For example, to add a new item, do as follows:
	 * 
	 * <pre>
	 * getUserChecks().add(newItem);
	 * </pre>
	 * 
	 * 
	 * <p>
	 * Objects of the following type(s) are allowed in the list
	 * {@link UserCheck }
	 * 
	 * 
	 */
	public List<UserCheck> getUserChecks() {
		if (userChecks == null) {
			userChecks = new ArrayList<UserCheck>();
		}
		return this.userChecks;
	}

	/**
	 * Gets the value of the userId property.
	 * 
	 * @return possible object is {@link String }
	 * 
	 */
	public String getUserId() {
		return userId;
	}

	/**
	 * Sets the value of the userId property.
	 * 
	 * @param value
	 *            allowed object is {@link String }
	 * 
	 */
	public void setUserId(String value) {
		this.userId = value;
	}

}
